package com.itheima.service.message;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.message.Communication;
import com.itheima.domain.message.CommunicationExample;

import java.util.List;

// 购销合同
public interface CommunicationService {

	//根据id查询
    Communication findById(String id);

    //保存
    void save(Communication communication);

    //更新
    void update(Communication communication);

    //删除
    void delete(String id);

    /*
     *   查询所有
     * */
    List<Communication> findAll(CommunicationExample example);


    //分页查询
	public PageInfo findByPage(int pageNum, int pageSize, CommunicationExample example);

    List<Communication> findUnread(String id);

    //List<CommunicationProductVo> findCommunicationProductVo(String inputDate, String companyId);
}
